package com.paypal.android.MEP;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.Log;
import com.paypal.android.a.c;
import com.paypal.android.a.j;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Locale;
import junit.framework.Assert;

public final class e
{
  private static final String[] a = { "GOODS", "SERVICE", "PERSONAL", "NONE" };
  private static final String[] b = { "AFFILIATE_PAYMENTS", "B2B", "PAYROLL", "REBATES", "REFUNDS", "REIMBURSEMENTS", "DONATIONS", "UTILITIES", "TUITION", "GOVERNMENT", "INSURANCE", "REMITTANCES", "RENT", "MORTGAGE", "MEDICAL", "CHILD_CARE", "EVENT_PLANNING", "GENERAL_CONTRACTORS", "ENTERTAINMENT", "TOURISM", "INVOICE", "TRANSFER", "NONE" };
  private static com.paypal.android.c.a f = null;
  private f c = new f(this);
  private final g d = new g(this);
  private Boolean e = Boolean.valueOf(false);
  private boolean g = false;
  private String h = null;
  private String i = "";

  private e()
  {
    w();
  }

  public static int a(String paramString1, String paramString2)
  {
    return 0;
  }

  public static e a()
  {
    return PayPalActivity.b;
  }

  public static e a(Context paramContext, String paramString, int paramInt)
  {
    if (PayPalActivity.b != null)
      PayPalActivity.b.b();
    e locale1 = new e();
    PayPalActivity.b = locale1;
    locale1.c.d = paramContext;
    PayPalActivity.b.c.e = paramString;
    PayPalActivity.b.c.j = paramInt;
    PayPalActivity.b.c.n = false;
    PayPalActivity.b.c.m = true;
    c.d();
    e locale2 = PayPalActivity.b;
    com.paypal.android.a.i.a();
    Locale localLocale = Locale.getDefault();
    String str = localLocale.getLanguage() + '_' + localLocale.getCountry();
    locale2.a(str);
    j.c(str);
    if (!PayPalActivity.b.e.booleanValue());
    try
    {
      synchronized (PayPalActivity.b)
      {
        PayPalActivity.b.wait();
        label159: return PayPalActivity.b;
      }
    }
    catch (InterruptedException localInterruptedException)
    {
      break label159;
    }
  }

  public static int b(String paramString1, String paramString2)
  {
    return Log.e(paramString1, paramString2);
  }

  public static String c(int paramInt)
  {
    return a[paramInt];
  }

  public static String d(int paramInt)
  {
    return b[paramInt];
  }

  private static String h(String paramString)
  {
    if (paramString == null)
      paramString = "";
    return paramString;
  }

  public static String x()
  {
    return "1.5.5.44";
  }

  public static String y()
  {
    return "1.5.5.44".substring(0, "1.5.5.44".lastIndexOf('.'));
  }

  public static String z()
  {
    return "1.5.5.44".substring(1 + "1.5.5.44".lastIndexOf('.'));
  }

  public final int A()
  {
    int j = 1;
    if ((this.c.a == null) && (this.c.b != null))
      j = 3;
    do
    {
      return j;
      if (this.c.a.b().size() == j)
        return 0;
    }
    while (!this.c.a.f());
    return 2;
  }

  public final float B()
  {
    return e().getResources().getDisplayMetrics().density;
  }

  public final boolean C()
  {
    if (this.c.a == null)
      return false;
    for (int j = 0; ; j++)
    {
      if (j >= this.c.a.b().size())
        break label61;
      if (((m)this.c.a.b().get(j)).d() != 2)
        break;
    }
    label61: return true;
  }

  public final boolean D()
  {
    boolean bool1 = true;
    String str = Locale.getDefault().getISO3Country();
    if ((Locale.GERMANY.getISO3Country().compareTo(str) == 0) || (Locale.ITALY.getISO3Country().compareTo(str) == 0));
    for (boolean bool2 = bool1; ; bool2 = false)
    {
      if ((bool2) || (!C()))
        bool1 = false;
      return bool1;
    }
  }

  public final boolean E()
  {
    String str = Locale.getDefault().getISO3Country();
    return (str.equals("USA")) || (str.equals("GBR")) || (str.equals("CAN")) || (str.equals("AUS")) || (str.equals("ESP")) || (str.equals("ITA")) || (str.equals("FRA")) || (str.equals("SGP")) || (str.equals("MYS"));
  }

  public final boolean F()
  {
    return !E();
  }

  public final boolean G()
  {
    if (A() == 3)
      return false;
    if (c().b().size() == 1)
    {
      m localm = (m)c().b().get(0);
      if (localm.c() == null)
        return false;
      i locali = localm.c();
      if ((locali.a() == null) && (locali.b() == null) && (locali.c().size() == 0))
        return false;
    }
    return true;
  }

  public final String H()
  {
    if (this.h == null)
      return j.a("ANDROID_calc_error");
    return this.h;
  }

  public final String I()
  {
    if (this.i.length() > 0)
      return this.i;
    return c.m();
  }

  public final Intent a(h paramh, Context paramContext, o paramo, n paramn)
  {
    this.c.a = paramh;
    this.c.b = null;
    Intent localIntent = new Intent(paramContext, PayPalActivity.class);
    localIntent.putExtra("com.paypal.android.PAYPAL_PAYMENT", paramh);
    if (paramo != null)
      localIntent.putExtra("com.paypal.android.PAYMENT_ADJUSTER", (Serializable)paramo);
    if (paramn != null)
      localIntent.putExtra("com.paypal.android.RESULT_DELEGATE", (Serializable)paramn);
    return localIntent;
  }

  public final Intent a(k paramk, Context paramContext, n paramn)
  {
    return a(paramk, paramContext, null, paramn);
  }

  public final Intent a(k paramk, Context paramContext, o paramo, n paramn)
  {
    h localh = new h();
    localh.a(paramk.a());
    localh.b(paramk.i());
    localh.c(paramk.j());
    m localm = new m();
    localm.a(paramk.b());
    localm.a(paramk.c());
    localm.a(paramk.d());
    localm.a(paramk.e());
    localm.b(paramk.f());
    localm.b(paramk.j());
    localm.c(paramk.g());
    localm.d(paramk.h());
    localm.a(false);
    localh.b().add(localm);
    return a(localh, paramContext, paramo, paramn);
  }

  public final a a(Context paramContext, int paramInt1, int paramInt2)
  {
    this.c.c = new a(paramContext);
    this.c.c.a(paramInt1, paramInt2);
    this.c.k = paramInt2;
    this.c.c.setActive(true);
    return this.c.c;
  }

  public final void a(int paramInt)
  {
    this.d.d = paramInt;
  }

  public final void a(int paramInt, Object paramObject)
  {
  }

  public final void a(String paramString)
  {
    if (!j.b(paramString))
      paramString = "en_US";
    this.c.g = paramString;
    j.c(this.c.g);
  }

  public final void a(boolean paramBoolean)
  {
    synchronized (PayPalActivity.b)
    {
      PayPalActivity.b.e = Boolean.valueOf(paramBoolean);
      PayPalActivity.b.notifyAll();
      return;
    }
  }

  public final void b()
  {
    c.e();
    PayPalActivity.b = null;
    f = null;
  }

  public final void b(int paramInt)
  {
    this.d.e = paramInt;
  }

  public final void b(int paramInt, Object paramObject)
  {
  }

  public final void b(String paramString)
  {
    this.c.h = paramString;
  }

  public final void b(boolean paramBoolean)
  {
    this.g = paramBoolean;
  }

  public final h c()
  {
    return this.c.a;
  }

  public final void c(String paramString)
  {
    this.c.i = paramString;
  }

  public final void c(boolean paramBoolean)
  {
    this.d.f = paramBoolean;
  }

  public final l d()
  {
    return this.c.b;
  }

  public final void d(String paramString)
  {
    this.d.a = paramString;
  }

  public final Context e()
  {
    return this.c.d;
  }

  public final void e(String paramString)
  {
    this.d.b = paramString;
  }

  public final String f()
  {
    return this.c.e;
  }

  public final void f(String paramString)
  {
    this.d.c = paramString;
  }

  public final String g()
  {
    return this.c.f;
  }

  public final void g(String paramString)
  {
    Assert.assertNotNull("", paramString);
    this.i = paramString;
  }

  public final String h()
  {
    return this.c.g;
  }

  public final String i()
  {
    return this.c.h;
  }

  public final String j()
  {
    return this.c.i;
  }

  public final int k()
  {
    return this.c.j;
  }

  public final int l()
  {
    return this.c.k;
  }

  public final int m()
  {
    return this.c.l;
  }

  public final boolean n()
  {
    return this.c.m;
  }

  public final boolean o()
  {
    return this.c.n;
  }

  public final String p()
  {
    return h(this.d.a);
  }

  public final String q()
  {
    return h(this.d.b);
  }

  public final String r()
  {
    return this.d.c;
  }

  public final int s()
  {
    return this.d.d;
  }

  public final boolean t()
  {
    return this.g;
  }

  public final int u()
  {
    return this.d.e;
  }

  public final boolean v()
  {
    return this.d.f;
  }

  public final void w()
  {
    this.g = false;
    g localg = this.d;
    localg.g.d(null);
    localg.g.e(null);
    localg.g.f(null);
    localg.g.a(0);
    localg.g.b(0);
    localg.g.c(false);
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.MEP.e
 * JD-Core Version:    0.6.2
 */